package com.demo.thread;

/**
 * 1 主线程退出了，守护线程还会运行吗？
 * 2
 */
public class DaemonQuestion {

    public static void main(String[] args) {
        Thread t2 = new Thread(()->{

            System.out.println("2323232323");

        },"daemon");
        t2.start();
        t2.setDaemon(true);
    }
}
